﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Office.Interop.Word;

namespace WFL.Office.Word
{
    public class WordHeadersFooters
    {
        public WordHeaderFooter this[HeaderFooterIndex index]
        {
            get { return new WordHeaderFooter(_headersFooters[(WdHeaderFooterIndex)index]) { Section = Section }; }
        }

        private HeadersFooters _headersFooters;

        public WordSection Section
        {
            get;
            internal set;
        }

        internal WordHeadersFooters(HeadersFooters headersFooters)
        {
            _headersFooters = headersFooters;
        }
    }
}
